package com.kcwoo.shaokun.rxjavalearning.arc

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.kcwoo.shaokun.rxjavalearning.R

class Main2Activity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main2)
        //和这个activity绑定
        // 新版本已经默认集成了
        lifecycle.addObserver(MyObserver())
//        startService(Intent(this, MyService1::class.java))
    }
}
